<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "information".
 *
 * @property int $id id编号
 * @property string|null $name 用户名称
 * @property string|null $address 原地址
 * @property string|null $url 系统生成URL
 * @property string|null $Short 短链接
 * @property string|null $time 时间
 * @property int|null $type 状态 0 禁用 1开启
 * @property string|null $startime 创建时间
 */
class Information extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'information';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['type'], 'integer'],
            [['name', 'time', 'startime'], 'string', 'max' => 50],
            [['address'], 'string', 'max' => 255],
            [['url', 'Short'], 'string', 'max' => 150],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'address' => 'Address',
            'url' => 'Url',
            'Short' => 'Short',
            'time' => 'Time',
            'type' => 'Type',
            'startime' => 'Startime',
        ];
    }
}
